package com.qingjiang.projectschedule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qingjiang.projectschedule.pojo.Statistic;
import com.qingjiang.projectschedule.utils.Result;

import java.util.List;
import java.util.Map;

/**
 * @author jx
 * @description 针对表【statistic】的数据库操作Service
 * @createDate 2024-04-18 15:56:54
 */
public interface StatisticService extends IService<Statistic> {

    List<Map<String, Object>> getLastNodeAndState(String projectId, String accessTime);

    void putCurMonthStatistic(String projectId, String projectName, Integer deptId, String curYearMonth, int curNodeId, int curNodeState, String yellowNodes, String redNodes);

    List<Map<String, Object>> getAllProjectByDateColorDeptId(Integer deptId, String curYearMonth, String color);

    Result getHistoryProjectStatisticByYearAndMonth(String curYearMonth);

    void deleteCurrentMonthCancelProject(String projectId);
}
